﻿<?xml version="1.0" encoding="utf-8" ?>
<program_def>
	<!--program body-->
	<code_block>

		<assignment>
			<left>
				<variable name ="a" />
			</left>
			<right>
				<constant value ="5" />
			</right>
		</assignment>

		<assignment>
			<left>
				<variable name ="b" />
			</left>
			<right>
				<binary operator ="*">
					<left>
						<unary operator ="-">
							<constant value="2"/>
						</unary>
					</left>
					<right>
						<binary operator="+">
							<left>
								<variable name ="a" />
							</left>
							<right>
								<constant value ="10" />
							</right>
						</binary>
					</right>
				</binary>
			</right>
		</assignment>

		<!--Should print '-30'-->
		<function_call method="print">
			<arguments>
				<variable name ="b" />
			</arguments>
		</function_call>

	</code_block>
</program_def>